/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.tawriq.assignment2.question1.Polymorphism;

/**
 *
 * @author Tawriq
 */
public class SalariedEmployee extends Employee{
    private double weeklySalary=0;
    
    public SalariedEmployee(String firstName, double weeklySalary){
        super(firstName);
        this.weeklySalary = weeklySalary;
    }

    
    
    public double getWeeklySalary(){
        return weeklySalary;
    }
    
    @Override
    public double getPaymentAmount(){
        return getWeeklySalary();
    }
}
